package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Description: // 类说明，在创建类时要填写
 * @ClassName: ReggieApplication    // 类名，会自动填充
 * @Author: MYH          // 创建者
 * @Date: 2022/11/13 19:07   // 时间
 * @Version: 1.0     // 版本
 */
@Slf4j
@SpringBootApplication
//开启过滤器的组件扫描
@ServletComponentScan
@EnableTransactionManagement    //开启事务注解驱动
@EnableCaching//开启Spring Cache缓存注解功能
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class,args);
        log.info("项目启动成功");
    }
}
